Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: multiple tab #8304

Open
wants to merge 2 commits into
base: feat/multiple-tab
Choose a base branch
from
Open

test: multiple tab #8304

wants to merge 2 commits into from

Conversation

CurryYangxx
Copy link
Member

@CurryYangxx CurryYangxx commented Jan 20, 2025

smoke test for #8151 feature.

test('change icon after change request method', async ({ page }) => {
await page.getByLabel('Create in collection').click();
await page.getByLabel('HTTP Request').click();
await page.waitForTimeout(1000);
Copy link
Contributor

@jackkav jackkav Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waits are a test smell and should always be avoided at al costs as they do not scale.

They also often also indicated an underlying issue. Its worth getting to the bottom of whats happening to cause your action to to result in an immediate change to the ui you're interested in.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be remedied by dealing with the refs, ideally the test would also be scoped into the first PR, so its cool to merge this one in sooner rather than later

await page.getByLabel('Request collection', { exact: true }).click();
await page.getByPlaceholder('My Collection').fill('Test add tab collection');
await page.getByRole('button', { name: 'Create', exact: true }).click();
await page.waitForTimeout(1000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants